package drds.binlog.deployer;

/**
 * 启动的相关配置
 */
public class InstanceConfig
{

    private InstanceConfig globalConfig;

    private Boolean lazy;
    private String managerAddress;


    public InstanceConfig()
    {

    }

    public InstanceConfig(InstanceConfig globalConfig)
    {
        this.globalConfig = globalConfig;
    }

    public Boolean getLazy()
    {
        if (lazy == null && globalConfig != null)
        {
            return globalConfig.getLazy();
        } else
        {
            return lazy;
        }
    }

    public void setLazy(Boolean lazy)
    {
        this.lazy = lazy;
    }


    public String getManagerAddress()
    {
        if (managerAddress == null && globalConfig != null)
        {
            return globalConfig.getManagerAddress();
        } else
        {
            return managerAddress;
        }
    }

    public void setManagerAddress(String managerAddress)
    {
        this.managerAddress = managerAddress;
    }


}
